(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/banner/refrigerated" ], {
    "2e74": function(e, n, t) {},
    "3af3": function(e, n, t) {
        t.d(n, "b", function() {
            return r;
        }), t.d(n, "c", function() {
            return o;
        }), t.d(n, "a", function() {
            return a;
        });
        var a = {
            swiperDot: function() {
                return t.e("components/swiper-dot/swiper-dot").then(t.bind(null, "5e60"));
            }
        }, r = function() {
            var e = this, n = (e.$createElement, e._self._c, e.data.bannerShow ? e.__get_style([ e.bannerStyle ]) : null), t = e.data.bannerShow ? e.__map(e.data.bannerList, function(n, t) {
                return {
                    $orig: e.__get_orig(n),
                    s1: e.__get_style([ e.bannerImgStyle ])
                };
            }) : null, a = e.data.bannerShow && e.showDots ? e.data.bannerList.length : null;
            e.$mp.data = Object.assign({}, {
                $root: {
                    s0: n,
                    l0: t,
                    g0: a
                }
            });
        }, o = [];
    },
    "3c99": function(e, n, t) {
        t.r(n);
        var a = t("e632"), r = t.n(a);
        for (var o in a) [ "default" ].indexOf(o) < 0 && function(e) {
            t.d(n, e, function() {
                return a[e];
            });
        }(o);
        n.default = r.a;
    },
    "3f0c": function(e, n, t) {
        var a = t("2e74");
        t.n(a).a;
    },
    bfd1: function(e, n, t) {
        t.r(n);
        var a = t("3af3"), r = t("3c99");
        for (var o in r) [ "default" ].indexOf(o) < 0 && function(e) {
            t.d(n, e, function() {
                return r[e];
            });
        }(o);
        t("3f0c");
        var i = t("f0c5"), u = Object(i.a)(r.default, a.b, a.c, !1, null, "8d234280", null, !1, a.a, void 0);
        n.default = u.exports;
    },
    e632: function(e, n, t) {
        var a = t("4ea4").default;
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.default = void 0;
        var r = a(t("ded3")), o = t("fd0e"), i = t("665c"), u = t("05dc"), d = t("554f"), c = t("48b8"), l = {};
        l.props = {
            adLocation: {
                type: String,
                default: "未找到相关页面"
            },
            adsType: {
                type: Number,
                default: 1001
            },
            usedAdTypeText: {
                type: String,
                default: ""
            },
            jumpParams: {
                type: Object,
                default: function() {
                    return {};
                }
            },
            reportParams: {
                type: Object,
                default: function() {
                    return {};
                }
            },
            closable: {
                type: Boolean,
                default: !1
            },
            height: {
                type: Number,
                default: 170
            },
            borderRadius: {
                type: Number,
                default: 0
            }
        }, l.setup = function(e, n) {
            var t = (0, i.useState)(), a = t.userInfo, l = (t.selectedService, (0, i.useGetters)()), s = l.isRefrigeratedService, f = l.startAddress, p = e, b = n.emit, v = (0, 
            o.reactive)({
                bannerList: [],
                bannerShow: !1,
                bannerCurrent: 0,
                autoPlay: !0,
                initLoad: !1,
                oldCityId: 0,
                oldToken: ""
            }), m = (0, o.computed)(function() {
                return v.bannerList.length > 1;
            }), h = (0, o.computed)(function() {
                var e = p.height, n = p.borderRadius;
                return {
                    height: "".concat(e, "rpx"),
                    borderRadius: "".concat(n, "rpx")
                };
            }), g = (0, o.computed)(function() {
                return {
                    height: "".concat(p.height, "rpx")
                };
            }), _ = (0, o.computed)(function() {
                var e;
                return 1 === (null === (e = v.bannerList[0]) || void 0 === e ? void 0 : e.is_support_close);
            }), y = (0, o.computed)(function() {
                return p.usedAdTypeText || (0, d.getAdTypeText)(p.adsType);
            });
            function w() {
                var e = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0];
                if (e || !v.initLoad) {
                    var n, t, r = (null === (n = f.value) || void 0 === n ? void 0 : n.city_id) || 1002, o = (null === (t = a.value) || void 0 === t ? void 0 : t.token) || 0;
                    if (v.bannerList.length > 0 && Number(v.oldCityId) === Number(r) && v.oldToken === o) return;
                    var i = {
                        type: p.adsType,
                        tab_type: 2
                    };
                    (0, d.getAdList)(i).then(function(e) {
                        v.initLoad = !1, v.oldCityId = r, v.oldToken = o, v.bannerList = e || [], v.bannerShow = e.length > 0, 
                        v.bannerCurrent = 0, v.bannerShow && L();
                    });
                }
            }
            function L() {
                var e = v.bannerList, n = p.adLocation, t = p.reportParams;
                e.map(function(e) {
                    console.info("banner曝光---".concat(e.title)), d.adUtils.reportAdShow(e, y.value, n, t);
                }), s.value && e.map(function(e) {
                    (0, u.statistics)("lengyun_homepage_adv_resource_expo", T(e));
                });
            }
            function S() {
                var e = v.bannerList, n = v.bannerCurrent, t = p.reportParams, a = p.adLocation, o = e[n];
                d.adUtils.reportAdClose(o, y.value, a, (0, r.default)({
                    module_name: "关闭"
                }, t)), v.bannerShow = !1;
            }
            function T(e) {
                return {
                    ad_id: e.id || e.ad_id,
                    ad_title: e.title || e.name,
                    advertise_type: "冷运_底部banner"
                };
            }
            return (0, o.watch)(function() {
                return v.bannerShow;
            }, function(e) {
                (0, o.nextTick)(function() {
                    b("show", e);
                });
            }), (0, o.watch)(function() {
                var e;
                return null === (e = f.value) || void 0 === e ? void 0 : e.city_id;
            }, function() {
                w();
            }), (0, o.onBeforeMount)(function() {
                v.initLoad = !0, w();
            }), Object.assign({
                data: v,
                showDots: m,
                bannerStyle: h,
                bannerImgStyle: g,
                selfClosable: _,
                handleBannerChange: function(e) {
                    (0, o.nextTick)(function() {
                        v.bannerCurrent = e.detail.current;
                    });
                },
                handleBannerTap: function(e) {
                    var n = v.bannerList, t = p.jumpParams, a = p.adLocation, o = p.reportParams, i = n[e.currentTarget.dataset.index];
                    d.adUtils.handleAdTap((0, r.default)((0, r.default)({}, i), {}, {
                        jump_url: (0, c.appendUrlParams)(i.jump_url, t)
                    }), y.value, a, !1, o), s.value && (0, u.statistics)("lengyun_homepage_adv_resource_click", T(i));
                },
                close: S
            }, {
                init: w,
                close: S
            });
        }, l.components = Object.assign({
            SwiperDot: function() {
                t.e("components/swiper-dot/swiper-dot").then(function() {
                    return resolve(t("5e60"));
                }.bind(null, t)).catch(t.oe);
            }
        }, l.components);
        var s = l;
        n.default = s;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/banner/refrigerated-create-component", {
    "components/banner/refrigerated-create-component": function(e, n, t) {
        t("543d").createComponent(t("bfd1"));
    }
}, [ [ "components/banner/refrigerated-create-component" ] ] ]);